<div>
	{% if not tasks %}
	<div class="highlight ui-state-highlight">You need at least one completed task to schedule a job</div>
	{% else %}
	<form action="/new/job/?pid={{ project.id }}" method="POST">
		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:160px;">Job name :</label>
                	<input name="name" required="required" />
		</div>

		<div class='formfieldcontainer'>
			<label class="fieldlabel" style="width:160px;">Select Task :</label>
			<select name='tid' multiple="multiple" size="3" style="width:180px;">
				{% for task in tasks %}
				<option value="{{ task.id }}">{{ task.name }}</option>
				{% endfor %}
			</select>
		</div>
	
		<div class='formfieldcontainer'>
			<label class="fieldlabel" style="width:160px;">Select Classification Algo :</label>
                        <select name='cid'>
                                {% for algo in classification_algos %}
                                <option value="{{ algo.id }}">{{ algo.name }}</option>
                                {% endfor %}
                        </select>
		</div>
		
		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:160px;">Classifier Arguments :</label>
                	<input name="carg" />
		</div>
		
		<div class='formfieldcontainer'>
			<label class="fieldlabel" style="width:160px;">Select Vectorization Algos :</label>
                        <select name='vid'>
                                {% for algo in vectorization_algos %}
                                <option value="{{ algo.id }}">{{ algo.name }}</option>
                                {% endfor %}
                        </select>
		</div>

		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:160px;">Vectorizer Arguments :</label>
                        <input name="varg" />
                </div>

		<div class='formfieldcontainer' style='text-align:center;font-weight:bold;font-size:14px;'>
			OR
		</div>

		<div class='formfieldcontainer'>
                        <label class="fieldlabel" style="width:160px;">Select Corpus Vector :</label>
                        <select name='vecid'>
				<option value="0">-----------</option>
                                {% for vec in vectors %}
                                <option value="{{ vec.id }}">{{ vec.name }}</option>
                                {% endfor %}
                        </select>
                </div>

		<div class='formfieldcontainer'>
			<input type="submit" value="Create" class="button-base button-blue button-small" style="margin-left:50px;" />
		</div>
	</form>
	{% endif %}
</div>
